package org.telegram.bot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.telegram.bot.domain.BotMenu;

import java.util.List;

/**
 * Bot菜单Mapper接口
 *
 * @author wyx
 * @date 2023-05-31
 */
public interface BotMenuMapper extends BaseMapper<BotMenu>
{

    /**
     * 查询Bot菜单列表
     *
     * @param botMenu Bot菜单
     * @return Bot菜单集合
     */
    public List<BotMenu> selectBotMenuList(BotMenu botMenu);

    String selectMenuNameById(@Param("id") Long id);

    Long selectIdByCode(@Param("code") String code);

    Integer selectChildrenCountById(@Param("id") Long id);

}
